{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do\..\output\logfiles\Table_1_2.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 May 2025, 17:36:38
{txt}
{com}. 
. use  ..\temp\trade_data_h6_covars_h1.dta, clear
{txt}
{com}. 
. ***** Regressions ************************
. ******************************************
. **********************************************************************************************************************************************************************************************************************
. //Prelimn
. egen ych4 = group(h4 y c)
{txt}
{com}. egen tag_hs4 = tag(ych4)
{txt}
{com}. 
. bys c y: egen total = total(v)
{txt}
{com}. gen v_share = v/total
{txt}(122,421 missing values generated)

{com}. 
. gen ln_v = ln(v)
{txt}(122,421 missing values generated)

{com}.  
. loc run = 1
{txt}
{com}. if `run' == 1{c -(}
.         
. //Panel A
. 
. reg B1_hs6 commodity_exports, cluster(cy)

{txt}Linear regression                               Number of obs     = {res} 2,139,469
                                                {txt}F(1, 609)         =  {res}    40.66
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0043
                                                {txt}Root MSE          =    {res} 3196.5

{txt}{ralign 83:(Std. err. adjusted for {res:610} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} 891.3095{col 31}{space 2} 139.7777{col 42}{space 1}    6.38{col 51}{space 3}0.000{col 59}{space 4} 616.8048{col 72}{space 3} 1165.814
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 4228.832{col 31}{space 2} 32.41108{col 42}{space 1}  130.47{col 51}{space 3}0.000{col 59}{space 4} 4165.181{col 72}{space 3} 4292.483
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}  2,139,469    4211.203    3203.487   3.956714      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelA.tex,  tex(frag) replace label  nocons dec(0) rdec(2) addtext(HS digit product category, 6, Country-product fixed effects, No, Product-year fixed effects, No) addstat(Dependent variable mean, `m') sortvar(commodity_exports compriceindexfixw loggdppc gini_i cce rqe)
{txt}{stata `"shellout using `"..\output\Table_1_panelA.tex"'"':..\output\Table_1_panelA.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelA.txt", label"':seeout}
{com}. 
. reghdfe B1_hs6 commodity_exports , absorb(yh6) cluster(cy)
{res}{txt}(dropped 1693 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,137,776
{txt}Absorbing 1 HDFE group{col 51}F({res}   1{txt},{res}    609{txt}){col 67}= {res}     45.28
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.3998
{txt}{col 51}Adj R-squared{col 67}= {res}    0.3690
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0127
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       610{txt}{col 51}Root MSE{col 67}= {res} 2543.6347

{txt}{ralign 83:(Std. err. adjusted for {res:610} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} 1204.719{col 31}{space 2} 179.0385{col 42}{space 1}    6.73{col 51}{space 3}0.000{col 59}{space 4} 853.1112{col 72}{space 3} 1556.327
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 4232.177{col 31}{space 2} 41.59995{col 42}{space 1}  101.74{col 51}{space 3}0.000{col 59}{space 4}  4150.48{col 72}{space 3} 4313.873
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         yh6{col 14}{c |}{space 1}   104428{col 27}{space 1}        0{col 39}{result}{space 1}   104428{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}  2,137,776    4208.264     3202.16   3.956714      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelA.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, No, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(0) rdec(2) sortvar(commodity_exports compriceindexfixw loggdppc gini_i cce rqe)
{txt}{stata `"shellout using `"..\output\Table_1_panelA.tex"'"':..\output\Table_1_panelA.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelA.txt", label"':seeout}
{com}. 
. reghdfe B1_hs6 commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13805 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,125,664
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}      3.74
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0535
{txt}{col 51}R-squared{col 67}= {res}    0.7527
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7127
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0003
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res} 1710.2595

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} 434.2124{col 31}{space 2} 224.4041{col 42}{space 1}    1.93{col 51}{space 3}0.053{col 59}{space 4}-6.488976{col 72}{space 3} 874.9137
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 4198.973{col 31}{space 2} 11.48225{col 42}{space 1}  365.69{col 51}{space 3}0.000{col 59}{space 4} 4176.424{col 72}{space 3} 4221.523
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196017{col 27}{space 1}        0{col 39}{result}{space 1}   196017{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104312{col 27}{space 1}     4269{col 39}{result}{space 1}   100043{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}  2,125,664    4190.346    3190.544   3.956714      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelA.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(0) rdec(2) sortvar(commodity_exports compriceindexfixw loggdppc gini_i cce rqe)
{txt}{stata `"shellout using `"..\output\Table_1_panelA.tex"'"':..\output\Table_1_panelA.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelA.txt", label"':seeout}
{com}. 
. reghdfe B1_hs6 commodity_exports loggdppc gini_i cce rqe , absorb(ch6 yh6) cluster(cy) 
{res}{txt}(dropped 15183 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,677,999
{txt}Absorbing 2 HDFE groups{col 51}F({res}   5{txt},{res}    472{txt}){col 67}= {res}     29.73
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.7648
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7218
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0121
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       473{txt}{col 51}Root MSE{col 67}= {res} 1670.6221

{txt}{ralign 83:(Std. err. adjusted for {res:473} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} 316.4756{col 31}{space 2} 162.3154{col 42}{space 1}    1.95{col 51}{space 3}0.052{col 59}{space 4}-2.474582{col 72}{space 3} 635.4258
{txt}{space 9}loggdppc {c |}{col 19}{res}{space 2}-766.0367{col 31}{space 2}  163.173{col 42}{space 1}   -4.69{col 51}{space 3}0.000{col 59}{space 4}-1086.672{col 72}{space 3}-445.4014
{txt}{space 11}gini_i {c |}{col 19}{res}{space 2}-3273.537{col 31}{space 2} 545.6416{col 42}{space 1}   -6.00{col 51}{space 3}0.000{col 59}{space 4}-4345.724{col 72}{space 3} -2201.35
{txt}{space 14}cce {c |}{col 19}{res}{space 2}-458.4152{col 31}{space 2} 64.26079{col 42}{space 1}   -7.13{col 51}{space 3}0.000{col 59}{space 4}-584.6879{col 72}{space 3}-332.1426
{txt}{space 14}rqe {c |}{col 19}{res}{space 2}-352.8218{col 31}{space 2} 76.52566{col 42}{space 1}   -4.61{col 51}{space 3}0.000{col 59}{space 4}-503.1949{col 72}{space 3}-202.4487
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 3908.512{col 31}{space 2} 26.90629{col 42}{space 1}  145.26{col 51}{space 3}0.000{col 59}{space 4} 3855.642{col 72}{space 3} 3961.383
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   171410{col 27}{space 1}        0{col 39}{result}{space 1}   171410{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    92501{col 27}{space 1}     4268{col 39}{result}{space 1}    88233{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}  1,677,999    4114.454    3167.095   3.956714      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelA.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(0) rdec(2)   sortvar(commodity_exports compriceindexfixw loggdppc gini_i cce rqe)
{txt}{stata `"shellout using `"..\output\Table_1_panelA.tex"'"':..\output\Table_1_panelA.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelA.txt", label"':seeout}
{com}. 
. reghdfe B1_hs6 compriceindexfixw, absorb(ch6 yh6) cluster(cy) 
{res}{txt}(dropped 13540 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,198,400
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    628{txt}){col 67}= {res}      2.76
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0969
{txt}{col 51}R-squared{col 67}= {res}    0.7517
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7130
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       629{txt}{col 51}Root MSE{col 67}= {res} 1707.6868

{txt}{ralign 83:(Std. err. adjusted for {res:629} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2} 1018.651{col 31}{space 2} 612.6911{col 42}{space 1}    1.66{col 51}{space 3}0.097{col 59}{space 4}-184.5206{col 72}{space 3} 2221.822
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 4186.583{col 31}{space 2} 12.34387{col 42}{space 1}  339.16{col 51}{space 3}0.000{col 59}{space 4} 4162.343{col 72}{space 3} 4210.824
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196698{col 27}{space 1}        0{col 39}{result}{space 1}   196698{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104324{col 27}{space 1}     4269{col 39}{result}{space 1}   100055{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}  2,198,400     4176.68    3187.365   3.956714      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelA.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(0) rdec(2)  sortvar(commodity_exports compriceindexfixw loggdppc gini_i cce rqe)
{txt}{stata `"shellout using `"..\output\Table_1_panelA.tex"'"':..\output\Table_1_panelA.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelA.txt", label"':seeout}
{com}. 
. reghdfe B1_hs6 compriceindexfixw loggdppc gini_i cce rqe, absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 14877 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,750,776
{txt}Absorbing 2 HDFE groups{col 51}F({res}   5{txt},{res}    492{txt}){col 67}= {res}     25.21
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.7630
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7216
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0111
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       493{txt}{col 51}Root MSE{col 67}= {res} 1669.2486

{txt}{ralign 83:(Std. err. adjusted for {res:493} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2} 792.2626{col 31}{space 2} 470.4727{col 42}{space 1}    1.68{col 51}{space 3}0.093{col 59}{space 4} -132.121{col 72}{space 3} 1716.646
{txt}{space 9}loggdppc {c |}{col 19}{res}{space 2}-784.6578{col 31}{space 2} 160.9795{col 42}{space 1}   -4.87{col 51}{space 3}0.000{col 59}{space 4} -1100.95{col 72}{space 3}-468.3658
{txt}{space 11}gini_i {c |}{col 19}{res}{space 2}-1919.586{col 31}{space 2} 545.5481{col 42}{space 1}   -3.52{col 51}{space 3}0.000{col 59}{space 4}-2991.477{col 72}{space 3}-847.6944
{txt}{space 14}cce {c |}{col 19}{res}{space 2}-528.0781{col 31}{space 2} 64.89989{col 42}{space 1}   -8.14{col 51}{space 3}0.000{col 59}{space 4}-655.5932{col 72}{space 3} -400.563
{txt}{space 14}rqe {c |}{col 19}{res}{space 2}-250.5419{col 31}{space 2}   75.834{col 42}{space 1}   -3.30{col 51}{space 3}0.001{col 59}{space 4}-399.5404{col 72}{space 3}-101.5435
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 3860.521{col 31}{space 2}  26.1237{col 42}{space 1}  147.78{col 51}{space 3}0.000{col 59}{space 4} 3809.194{col 72}{space 3} 3911.849
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   172134{col 27}{space 1}        0{col 39}{result}{space 1}   172134{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    92527{col 27}{space 1}     4269{col 39}{result}{space 1}    88258{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}  1,750,776    4100.542    3163.723   3.956714      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelA.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(0) rdec(2)  sortvar(commodity_exports compriceindexfixw loggdppc gini_i cce rqe)
{txt}{stata `"shellout using `"..\output\Table_1_panelA.tex"'"':..\output\Table_1_panelA.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelA.txt", label"':seeout}
{com}. 
. {c )-}
{txt}
{com}. 
. ********************************************************************************
. ********************************************************************************
. //Panel B Type of good
. loc run =1
{txt}
{com}. if `run' == 1{c -(}
.         
. ********************************************************************************
. ********************************************************************************
. 
. reghdfe B1_hs6 commodity_exports  if type_of_good=="primary", absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 1686 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 20 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   101,811
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}      4.22
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0404
{txt}{col 51}R-squared{col 67}= {res}    0.7263
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6702
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res} 1890.5249

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} 455.2676{col 31}{space 2} 221.6217{col 42}{space 1}    2.05{col 51}{space 3}0.040{col 59}{space 4} 20.03064{col 72}{space 3} 890.5045
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 6019.917{col 31}{space 2} 13.81909{col 42}{space 1}  435.62{col 51}{space 3}0.000{col 59}{space 4} 5992.778{col 72}{space 3} 6047.056
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}    11054{col 27}{space 1}        0{col 39}{result}{space 1}    11054{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}     6528{col 27}{space 1}      281{col 39}{result}{space 1}     6247{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}    101,811    6005.556     3292.16   39.68727      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelB.tex, tex(frag) replace label nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m' ) dec(0) rdec(2) ctitle ("Primary")   
{txt}{stata `"shellout using `"..\output\Table_1_panelB.tex"'"':..\output\Table_1_panelB.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelB.txt", label"':seeout}
{com}. 
. reghdfe B1_hs6 commodity_exports  if type_of_good=="capital", absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 1451 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   326,786
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}      4.20
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0407
{txt}{col 51}R-squared{col 67}= {res}    0.7290
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6878
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0004
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res} 1678.0553

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} 493.1096{col 31}{space 2} 240.4715{col 42}{space 1}    2.05{col 51}{space 3}0.041{col 59}{space 4} 20.85402{col 72}{space 3} 965.3652
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 3539.465{col 31}{space 2} 12.48361{col 42}{space 1}  283.53{col 51}{space 3}0.000{col 59}{space 4} 3514.948{col 72}{space 3} 3563.981
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}    28920{col 27}{space 1}        0{col 39}{result}{space 1}    28920{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    14777{col 27}{space 1}      599{col 39}{result}{space 1}    14178{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}    326,786    3531.678    3003.467   12.09879      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelB.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(0) rdec(2) ctitle ("Capital") 
{txt}{stata `"shellout using `"..\output\Table_1_panelB.tex"'"':..\output\Table_1_panelB.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelB.txt", label"':seeout}
{com}. 
. reghdfe B1_hs6 commodity_exports   if type_of_good=="consumption", absorb(ch6 yh6)  cluster(cy)
{res}{txt}(dropped 2848 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 17 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   597,978
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}      3.35
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0676
{txt}{col 51}R-squared{col 67}= {res}    0.7235
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6812
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0004
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res} 1664.3074

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} 484.6695{col 31}{space 2} 264.7323{col 42}{space 1}    1.83{col 51}{space 3}0.068{col 59}{space 4}-35.23118{col 72}{space 3}  1004.57
{txt}{space 12}_cons {c |}{col 19}{res}{space 2}  3633.91{col 31}{space 2} 14.04441{col 42}{space 1}  258.74{col 51}{space 3}0.000{col 59}{space 4} 3606.329{col 72}{space 3} 3661.492
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}    53206{col 27}{space 1}        0{col 39}{result}{space 1}    53206{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    27245{col 27}{space 1}     1112{col 39}{result}{space 1}    26133{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}    597,978    3626.089    2947.656   3.956714      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelB.tex , tex(frag) append label nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m' ) dec(0) rdec(2)  ctitle ("Consumption") 
{txt}{stata `"shellout using `"..\output\Table_1_panelB.tex"'"':..\output\Table_1_panelB.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelB.txt", label"':seeout}
{com}. 
. 
. reghdfe B1_hs6 compriceindexfixw  if type_of_good=="primary", absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 1674 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 18 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   105,636
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    628{txt}){col 67}= {res}      4.14
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0424
{txt}{col 51}R-squared{col 67}= {res}    0.7258
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6718
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       629{txt}{col 51}Root MSE{col 67}= {res} 1888.6887

{txt}{ralign 83:(Std. err. adjusted for {res:629} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2} 1178.421{col 31}{space 2} 579.3225{col 42}{space 1}    2.03{col 51}{space 3}0.042{col 59}{space 4} 40.77734{col 72}{space 3} 2316.065
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 5991.377{col 31}{space 2} 12.29303{col 42}{space 1}  487.38{col 51}{space 3}0.000{col 59}{space 4} 5967.236{col 72}{space 3} 6015.517
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}    11129{col 27}{space 1}        0{col 39}{result}{space 1}    11129{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}     6528{col 27}{space 1}      281{col 39}{result}{space 1}     6247{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}    105,636    5980.398    3296.817   39.68727      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelB.tex, tex(frag) append label nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m' ) dec(0) rdec(2) ctitle ("Primary")   
{txt}{stata `"shellout using `"..\output\Table_1_panelB.tex"'"':..\output\Table_1_panelB.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelB.txt", label"':seeout}
{com}. 
. reghdfe B1_hs6 compriceindexfixw  if type_of_good=="capital", absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 1424 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   337,574
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    628{txt}){col 67}= {res}      0.10
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.7461
{txt}{col 51}R-squared{col 67}= {res}    0.7284
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6886
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       629{txt}{col 51}Root MSE{col 67}= {res} 1674.2925

{txt}{ralign 83:(Std. err. adjusted for {res:629} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2} 243.7189{col 31}{space 2} 752.3971{col 42}{space 1}    0.32{col 51}{space 3}0.746{col 59}{space 4}  -1233.8{col 72}{space 3} 1721.238
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 3518.621{col 31}{space 2} 14.35012{col 42}{space 1}  245.20{col 51}{space 3}0.000{col 59}{space 4} 3490.441{col 72}{space 3} 3546.801
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}    28994{col 27}{space 1}        0{col 39}{result}{space 1}    28994{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    14777{col 27}{space 1}      599{col 39}{result}{space 1}    14178{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}    337,574    3516.254    3000.246   12.09879      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelB.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(0) rdec(2) ctitle ("Capital") 
{txt}{stata `"shellout using `"..\output\Table_1_panelB.tex"'"':..\output\Table_1_panelB.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelB.txt", label"':seeout}
{com}. 
. reghdfe B1_hs6 compriceindexfixw  if type_of_good=="consumption", absorb(ch6 yh6)  cluster(cy)
{res}{txt}(dropped 2786 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 18 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   617,641
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    628{txt}){col 67}= {res}      5.67
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0176
{txt}{col 51}R-squared{col 67}= {res}    0.7229
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6820
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0004
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       629{txt}{col 51}Root MSE{col 67}= {res} 1661.0542

{txt}{ralign 83:(Std. err. adjusted for {res:629} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           B1_hs6{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2} 1666.531{col 31}{space 2} 699.9962{col 42}{space 1}    2.38{col 51}{space 3}0.018{col 59}{space 4} 291.9146{col 72}{space 3} 3041.148
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 3633.464{col 31}{space 2} 15.20855{col 42}{space 1}  238.91{col 51}{space 3}0.000{col 59}{space 4} 3603.598{col 72}{space 3}  3663.33
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}    53365{col 27}{space 1}        0{col 39}{result}{space 1}    53365{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    27248{col 27}{space 1}     1112{col 39}{result}{space 1}    26136{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B1_hs6 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}B1_hs6 {c |}{res}    617,641    3617.318    2945.575   3.956714      10000
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_1_panelB.tex , tex(frag) append label nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m' ) dec(0) rdec(2) ctitle ("Consumption") 
{txt}{stata `"shellout using `"..\output\Table_1_panelB.tex"'"':..\output\Table_1_panelB.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_1_panelB.txt", label"':seeout}
{com}. 
. {c )-}
{txt}
{com}. 
. 
. ********************************************************************************
. ********************************************************************************
. //Table 2
. loc run = 0
{txt}
{com}. if `run' == 1{c -(}
. //Alternative measures
. 
. ********************************************************************************
. ********************************************************************************
. //Panel A
. reghdfe B7i commodity_exports , absorb(ch6 yh6) cluster(cy)
. sum B7i if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) replace label nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2)  
. 
. reghdfe B7iinew commodity_exports , absorb(ch6 yh6) cluster(cy)
. sum B7iinew if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2)  
. 
. reghdfe ln_A1 commodity_exports , absorb(ch6 yh6) cluster(cy)
. sum ln_A1 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2) 
. 
. reghdfe ln_G1 commodity_exports , absorb(ch6 yh6) cluster(cy)
. sum ln_G1 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(2) rdec(2) 
. 
. reghdfe H1 commodity_exports , absorb(ch6 yh6) cluster(cy)
. sum H1 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(2) rdec(2) 
. 
. reghdfe ln_G2 commodity_exports , absorb(ch6 yh6) cluster(cy)
. sum ln_G2 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(2) rdec(2) 
. 
. 
. {c )-}
{txt}
{com}. 
. ********************************************************************************
. ********************************************************************************
. //Panel B
. loc run =0
{txt}
{com}. if `run' == 1{c -(}
. //Alternative measures
. 
. ********************************************************************************
. ********************************************************************************
. 
. reghdfe B7i compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum B7i if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) replace label nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2)  
. 
. reghdfe B7iinew compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum B7iinew if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2)  
. 
. reghdfe ln_A1 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum ln_A1 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2) 
. 
. reghdfe ln_G1 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum ln_G1 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(2) rdec(2) 
. 
. reghdfe H1 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum H1 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(2) rdec(2) 
. 
. reghdfe ln_G2 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum ln_G2 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(2) rdec(2) 
. 
. {c )-}
{txt}
{com}. 
. 
{txt}end of do-file

{com}. do "C:\Users\hnguyen7\AppData\Local\Temp\STD5958_000000.tmp"
{txt}
{com}. //Table 2
. loc run = 1
{txt}
{com}. if `run' == 1{c -(}
. //Alternative measures
. 
. ********************************************************************************
. ********************************************************************************
. //Panel A
. reghdfe B7i commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13805 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,125,664
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}      3.34
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0681
{txt}{col 51}R-squared{col 67}= {res}    0.7286
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6847
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res}    0.1638

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}              B7i{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2}  .035357{col 31}{space 2} .0193438{col 42}{space 1}    1.83{col 51}{space 3}0.068{col 59}{space 4}-.0026317{col 72}{space 3} .0733457
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} .5296507{col 31}{space 2} .0010184{col 42}{space 1}  520.08{col 51}{space 3}0.000{col 59}{space 4} .5276507{col 72}{space 3} .5316507
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196017{col 27}{space 1}        0{col 39}{result}{space 1}   196017{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104312{col 27}{space 1}     4269{col 39}{result}{space 1}   100043{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B7i if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}B7i {c |}{res}  2,125,664    .5289482    .2916516   .0030744          1
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) replace label nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2)  
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. reghdfe B7iinew commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13805 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,125,664
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}      2.20
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1385
{txt}{col 51}R-squared{col 67}= {res}    0.8544
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8308
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res}    0.0907

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          B7iinew{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} .0207758{col 31}{space 2} .0140077{col 42}{space 1}    1.48{col 51}{space 3}0.139{col 59}{space 4}-.0067337{col 72}{space 3} .0482852
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} .8064926{col 31}{space 2} .0007906{col 42}{space 1} 1020.14{col 51}{space 3}0.000{col 59}{space 4}   .80494{col 72}{space 3} .8080451
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196017{col 27}{space 1}        0{col 39}{result}{space 1}   196017{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104312{col 27}{space 1}     4269{col 39}{result}{space 1}   100043{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B7iinew if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}B7iinew {c |}{res}  2,125,664    .8060798    .2204841   .0113545          1
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2)  
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. reghdfe ln_A1 commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13805 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,125,664
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}      3.99
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0461
{txt}{col 51}R-squared{col 67}= {res}    0.9380
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9280
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0015
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res}    0.4526

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            ln_A1{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2}-.2553029{col 31}{space 2} .1277565{col 42}{space 1}   -2.00{col 51}{space 3}0.046{col 59}{space 4}-.5062005{col 72}{space 3}-.0044053
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 2.621615{col 31}{space 2} .0066904{col 42}{space 1}  391.85{col 51}{space 3}0.000{col 59}{space 4} 2.608476{col 72}{space 3} 2.634754
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196017{col 27}{space 1}        0{col 39}{result}{space 1}   196017{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104312{col 27}{space 1}     4269{col 39}{result}{space 1}   100043{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum ln_A1 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ln_A1 {c |}{res}  2,125,664    2.626687    1.686556          0   10.77262
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. reghdfe ln_G1 commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13805 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,125,664
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}     10.84
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0011
{txt}{col 51}R-squared{col 67}= {res}    0.9003
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8842
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0019
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res}    0.3679

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            ln_G1{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2}-.2375872{col 31}{space 2} .0721668{col 42}{space 1}   -3.29{col 51}{space 3}0.001{col 59}{space 4}-.3793136{col 72}{space 3}-.0958609
{txt}{space 12}_cons {c |}{col 19}{res}{space 2}  1.76728{col 31}{space 2} .0039653{col 42}{space 1}  445.68{col 51}{space 3}0.000{col 59}{space 4} 1.759493{col 72}{space 3} 1.775068
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196017{col 27}{space 1}        0{col 39}{result}{space 1}   196017{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104312{col 27}{space 1}     4269{col 39}{result}{space 1}   100043{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum ln_G1 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ln_G1 {c |}{res}  2,125,664    1.772001      1.0813          0   5.278115
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(2) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. reghdfe H1 commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 10649 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,925,075
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    549{txt}){col 67}= {res}      0.33
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.5641
{txt}{col 51}R-squared{col 67}= {res}    0.5625
{txt}{col 51}Adj R-squared{col 67}= {res}    0.4851
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       550{txt}{col 51}Root MSE{col 67}= {res}    0.2124

{txt}{ralign 83:(Std. err. adjusted for {res:550} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}               H1{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} .0128856{col 31}{space 2} .0223294{col 42}{space 1}    0.58{col 51}{space 3}0.564{col 59}{space 4}-.0309758{col 72}{space 3} .0567471
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} .1919941{col 31}{space 2} .0012122{col 42}{space 1}  158.38{col 51}{space 3}0.000{col 59}{space 4} .1896129{col 72}{space 3} .1943753
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   193549{col 27}{space 1}        0{col 39}{result}{space 1}   193549{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   100032{col 27}{space 1}     4269{col 39}{result}{space 1}    95763{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum H1 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}H1 {c |}{res}  1,925,075    .1917595    .2960184          0          1
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(2) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. reghdfe ln_G2 commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 24728 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,764,603
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    527{txt}){col 67}= {res}      3.54
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0604
{txt}{col 51}R-squared{col 67}= {res}    0.8176
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7871
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0007
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       528{txt}{col 51}Root MSE{col 67}= {res}    0.9289

{txt}{ralign 83:(Std. err. adjusted for {res:528} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            ln_G2{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} .3459666{col 31}{space 2}  .183805{col 42}{space 1}    1.88{col 51}{space 3}0.060{col 59}{space 4}-.0151138{col 72}{space 3} .7070471
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 1.746369{col 31}{space 2} .0100359{col 42}{space 1}  174.01{col 51}{space 3}0.000{col 59}{space 4} 1.726654{col 72}{space 3} 1.766085
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   164402{col 27}{space 1}        0{col 39}{result}{space 1}   164402{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    92881{col 27}{space 1}     4269{col 39}{result}{space 1}    88612{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum ln_G2 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ln_G2 {c |}{res}  1,764,603    1.746875     2.01304  -14.41053   26.32497
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(2) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. 
. {c )-}
{txt}
{com}. 
. ********************************************************************************
. ********************************************************************************
. //Panel B
. loc run =0
{txt}
{com}. if `run' == 1{c -(}
. //Alternative measures
. 
. ********************************************************************************
. ********************************************************************************
. 
. reghdfe B7i compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum B7i if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) replace label nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2)  
. 
. reghdfe B7iinew compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum B7iinew if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2)  
. 
. reghdfe ln_A1 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum ln_A1 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(2) rdec(2) 
. 
. reghdfe ln_G1 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum ln_G1 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(2) rdec(2) 
. 
. reghdfe H1 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum H1 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(2) rdec(2) 
. 
. reghdfe ln_G2 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
. sum ln_G2 if e(sample)==1
. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(2) rdec(2) 
. 
. {c )-}
{txt}
{com}. 
. 
{txt}end of do-file

{com}. do "C:\Users\hnguyen7\AppData\Local\Temp\STD5958_000000.tmp"
{txt}
{com}. //Table 2
. loc run = 1
{txt}
{com}. if `run' == 1{c -(}
. //Alternative measures
. 
. ********************************************************************************
. ********************************************************************************
. //Panel A
. reghdfe B7i commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13805 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,125,664
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}      3.34
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0681
{txt}{col 51}R-squared{col 67}= {res}    0.7286
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6847
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res}    0.1638

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}              B7i{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2}  .035357{col 31}{space 2} .0193438{col 42}{space 1}    1.83{col 51}{space 3}0.068{col 59}{space 4}-.0026317{col 72}{space 3} .0733457
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} .5296507{col 31}{space 2} .0010184{col 42}{space 1}  520.08{col 51}{space 3}0.000{col 59}{space 4} .5276507{col 72}{space 3} .5316507
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196017{col 27}{space 1}        0{col 39}{result}{space 1}   196017{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104312{col 27}{space 1}     4269{col 39}{result}{space 1}   100043{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B7i if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}B7i {c |}{res}  2,125,664    .5289482    .2916516   .0030744          1
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) replace label nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(3) rdec(2)  
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. reghdfe B7iinew commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13805 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,125,664
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}      2.20
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1385
{txt}{col 51}R-squared{col 67}= {res}    0.8544
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8308
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res}    0.0907

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          B7iinew{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} .0207758{col 31}{space 2} .0140077{col 42}{space 1}    1.48{col 51}{space 3}0.139{col 59}{space 4}-.0067337{col 72}{space 3} .0482852
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} .8064926{col 31}{space 2} .0007906{col 42}{space 1} 1020.14{col 51}{space 3}0.000{col 59}{space 4}   .80494{col 72}{space 3} .8080451
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196017{col 27}{space 1}        0{col 39}{result}{space 1}   196017{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104312{col 27}{space 1}     4269{col 39}{result}{space 1}   100043{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B7iinew if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}B7iinew {c |}{res}  2,125,664    .8060798    .2204841   .0113545          1
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(3) rdec(2)  
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. reghdfe ln_A1 commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13805 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,125,664
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}      3.99
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0461
{txt}{col 51}R-squared{col 67}= {res}    0.9380
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9280
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0015
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res}    0.4526

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            ln_A1{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2}-.2553029{col 31}{space 2} .1277565{col 42}{space 1}   -2.00{col 51}{space 3}0.046{col 59}{space 4}-.5062005{col 72}{space 3}-.0044053
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 2.621615{col 31}{space 2} .0066904{col 42}{space 1}  391.85{col 51}{space 3}0.000{col 59}{space 4} 2.608476{col 72}{space 3} 2.634754
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196017{col 27}{space 1}        0{col 39}{result}{space 1}   196017{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104312{col 27}{space 1}     4269{col 39}{result}{space 1}   100043{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum ln_A1 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ln_A1 {c |}{res}  2,125,664    2.626687    1.686556          0   10.77262
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(3) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. reghdfe ln_G1 commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13805 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,125,664
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    608{txt}){col 67}= {res}     10.84
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0011
{txt}{col 51}R-squared{col 67}= {res}    0.9003
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8842
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0019
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       609{txt}{col 51}Root MSE{col 67}= {res}    0.3679

{txt}{ralign 83:(Std. err. adjusted for {res:609} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            ln_G1{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2}-.2375872{col 31}{space 2} .0721668{col 42}{space 1}   -3.29{col 51}{space 3}0.001{col 59}{space 4}-.3793136{col 72}{space 3}-.0958609
{txt}{space 12}_cons {c |}{col 19}{res}{space 2}  1.76728{col 31}{space 2} .0039653{col 42}{space 1}  445.68{col 51}{space 3}0.000{col 59}{space 4} 1.759493{col 72}{space 3} 1.775068
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196017{col 27}{space 1}        0{col 39}{result}{space 1}   196017{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104312{col 27}{space 1}     4269{col 39}{result}{space 1}   100043{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum ln_G1 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ln_G1 {c |}{res}  2,125,664    1.772001      1.0813          0   5.278115
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(3) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. reghdfe H1 commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 10649 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,925,075
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    549{txt}){col 67}= {res}      0.33
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.5641
{txt}{col 51}R-squared{col 67}= {res}    0.5625
{txt}{col 51}Adj R-squared{col 67}= {res}    0.4851
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       550{txt}{col 51}Root MSE{col 67}= {res}    0.2124

{txt}{ralign 83:(Std. err. adjusted for {res:550} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}               H1{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} .0128856{col 31}{space 2} .0223294{col 42}{space 1}    0.58{col 51}{space 3}0.564{col 59}{space 4}-.0309758{col 72}{space 3} .0567471
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} .1919941{col 31}{space 2} .0012122{col 42}{space 1}  158.38{col 51}{space 3}0.000{col 59}{space 4} .1896129{col 72}{space 3} .1943753
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   193549{col 27}{space 1}        0{col 39}{result}{space 1}   193549{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   100032{col 27}{space 1}     4269{col 39}{result}{space 1}    95763{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum H1 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}H1 {c |}{res}  1,925,075    .1917595    .2960184          0          1
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(3) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. reghdfe ln_G2 commodity_exports , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 24728 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,764,603
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    527{txt}){col 67}= {res}      3.54
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0604
{txt}{col 51}R-squared{col 67}= {res}    0.8176
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7871
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0007
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       528{txt}{col 51}Root MSE{col 67}= {res}    0.9289

{txt}{ralign 83:(Std. err. adjusted for {res:528} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            ln_G2{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
commodity_exports {c |}{col 19}{res}{space 2} .3459666{col 31}{space 2}  .183805{col 42}{space 1}    1.88{col 51}{space 3}0.060{col 59}{space 4}-.0151138{col 72}{space 3} .7070471
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 1.746369{col 31}{space 2} .0100359{col 42}{space 1}  174.01{col 51}{space 3}0.000{col 59}{space 4} 1.726654{col 72}{space 3} 1.766085
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   164402{col 27}{space 1}        0{col 39}{result}{space 1}   164402{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    92881{col 27}{space 1}     4269{col 39}{result}{space 1}    88612{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum ln_G2 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ln_G2 {c |}{res}  1,764,603    1.746875     2.01304  -14.41053   26.32497
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2A.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(3) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2A.tex"'"':..\output\Table_2A.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2A.txt", label"':seeout}
{com}. 
. 
. {c )-}
{txt}
{com}. 
. ********************************************************************************
. ********************************************************************************
. //Panel B
. loc run =1
{txt}
{com}. if `run' == 1{c -(}
. //Alternative measures
. 
. ********************************************************************************
. ********************************************************************************
. 
. reghdfe B7i compriceindexfixw , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13540 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,198,400
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    628{txt}){col 67}= {res}      2.60
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1073
{txt}{col 51}R-squared{col 67}= {res}    0.7274
{txt}{col 51}Adj R-squared{col 67}= {res}    0.6849
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       629{txt}{col 51}Root MSE{col 67}= {res}    0.1636

{txt}{ralign 83:(Std. err. adjusted for {res:629} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}              B7i{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2} .0862789{col 31}{space 2} .0534973{col 42}{space 1}    1.61{col 51}{space 3}0.107{col 59}{space 4}-.0187764{col 72}{space 3} .1913342
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} .5285612{col 31}{space 2} .0010891{col 42}{space 1}  485.31{col 51}{space 3}0.000{col 59}{space 4} .5264225{col 72}{space 3}    .5307
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196698{col 27}{space 1}        0{col 39}{result}{space 1}   196698{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104324{col 27}{space 1}     4269{col 39}{result}{space 1}   100055{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B7i if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}B7i {c |}{res}  2,198,400    .5277224    .2915363   .0030744          1
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) replace label nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(3) rdec(2)  
{txt}{stata `"shellout using `"..\output\Table_2B.tex"'"':..\output\Table_2B.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2B.txt", label"':seeout}
{com}. 
. reghdfe B7iinew compriceindexfixw , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13540 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,198,400
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    628{txt}){col 67}= {res}      0.92
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.3372
{txt}{col 51}R-squared{col 67}= {res}    0.8536
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8307
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       629{txt}{col 51}Root MSE{col 67}= {res}    0.0909

{txt}{ralign 83:(Std. err. adjusted for {res:629} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          B7iinew{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2} .0372048{col 31}{space 2}  .038733{col 42}{space 1}    0.96{col 51}{space 3}0.337{col 59}{space 4}-.0388571{col 72}{space 3} .1132667
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} .8054214{col 31}{space 2} .0008341{col 42}{space 1}  965.60{col 51}{space 3}0.000{col 59}{space 4} .8037834{col 72}{space 3} .8070594
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196698{col 27}{space 1}        0{col 39}{result}{space 1}   196698{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104324{col 27}{space 1}     4269{col 39}{result}{space 1}   100055{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum B7iinew if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}B7iinew {c |}{res}  2,198,400    .8050597    .2209109   .0113545          1
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(3) rdec(2)  
{txt}{stata `"shellout using `"..\output\Table_2B.tex"'"':..\output\Table_2B.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2B.txt", label"':seeout}
{com}. 
. reghdfe ln_A1 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13540 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,198,400
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    628{txt}){col 67}= {res}      1.29
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.2562
{txt}{col 51}R-squared{col 67}= {res}    0.9376
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9279
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0003
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       629{txt}{col 51}Root MSE{col 67}= {res}    0.4526

{txt}{ralign 83:(Std. err. adjusted for {res:629} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            ln_A1{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2}-.3975615{col 31}{space 2} .3498139{col 42}{space 1}   -1.14{col 51}{space 3}0.256{col 59}{space 4}-1.084508{col 72}{space 3}  .289385
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 2.631049{col 31}{space 2} .0071651{col 42}{space 1}  367.20{col 51}{space 3}0.000{col 59}{space 4} 2.616979{col 72}{space 3}  2.64512
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196698{col 27}{space 1}        0{col 39}{result}{space 1}   196698{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104324{col 27}{space 1}     4269{col 39}{result}{space 1}   100055{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum ln_A1 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ln_A1 {c |}{res}  2,198,400    2.634914     1.68591          0   10.77262
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m') dec(3) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2B.tex"'"':..\output\Table_2B.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2B.txt", label"':seeout}
{com}. 
. reghdfe ln_G1 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 13540 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 2,198,400
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    628{txt}){col 67}= {res}      8.99
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0028
{txt}{col 51}R-squared{col 67}= {res}    0.8999
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8843
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0010
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       629{txt}{col 51}Root MSE{col 67}= {res}    0.3680

{txt}{ralign 83:(Std. err. adjusted for {res:629} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            ln_G1{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2}-.6011738{col 31}{space 2} .2004616{col 42}{space 1}   -3.00{col 51}{space 3}0.003{col 59}{space 4}  -.99483{col 72}{space 3}-.2075175
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 1.776282{col 31}{space 2} .0042263{col 42}{space 1}  420.30{col 51}{space 3}0.000{col 59}{space 4} 1.767983{col 72}{space 3} 1.784581
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   196698{col 27}{space 1}        0{col 39}{result}{space 1}   196698{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   104324{col 27}{space 1}     4269{col 39}{result}{space 1}   100055{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum ln_G1 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ln_G1 {c |}{res}  2,198,400    1.782127    1.081993          0   5.278115
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')  dec(3) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2B.tex"'"':..\output\Table_2B.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2B.txt", label"':seeout}
{com}. 
. reghdfe H1 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 10425 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,989,849
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    567{txt}){col 67}= {res}      0.70
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.4017
{txt}{col 51}R-squared{col 67}= {res}    0.5660
{txt}{col 51}Adj R-squared{col 67}= {res}    0.4919
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       568{txt}{col 51}Root MSE{col 67}= {res}    0.2128

{txt}{ralign 83:(Std. err. adjusted for {res:568} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}               H1{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2} .0491127{col 31}{space 2}  .058517{col 42}{space 1}    0.84{col 51}{space 3}0.402{col 59}{space 4}-.0658238{col 72}{space 3} .1640493
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} .1964213{col 31}{space 2} .0012855{col 42}{space 1}  152.79{col 51}{space 3}0.000{col 59}{space 4} .1938963{col 72}{space 3} .1989463
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   194235{col 27}{space 1}        0{col 39}{result}{space 1}   194235{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}   100042{col 27}{space 1}     4269{col 39}{result}{space 1}    95773{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum H1 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}H1 {c |}{res}  1,989,849    .1958878    .2986104          0          1
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(3) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2B.tex"'"':..\output\Table_2B.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2B.txt", label"':seeout}
{com}. 
. reghdfe ln_G2 compriceindexfixw , absorb(ch6 yh6) cluster(cy)
{res}{txt}(dropped 28420 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 20 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res} 1,829,783
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    545{txt}){col 67}= {res}     12.36
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0005
{txt}{col 51}R-squared{col 67}= {res}    0.8185
{txt}{col 51}Adj R-squared{col 67}= {res}    0.7892
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0003
{txt}{col 1}Number of clusters ({res}cy{txt}) {col 30}= {res}       546{txt}{col 51}Root MSE{col 67}= {res}    0.9237

{txt}{ralign 83:(Std. err. adjusted for {res:546} clusters in {res:cy})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}            ln_G2{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
compriceindexfixw {c |}{col 19}{res}{space 2} .9351007{col 31}{space 2} .2660196{col 42}{space 1}    3.52{col 51}{space 3}0.000{col 59}{space 4} .4125515{col 72}{space 3}  1.45765
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 1.759447{col 31}{space 2}    .0101{col 42}{space 1}  174.20{col 51}{space 3}0.000{col 59}{space 4} 1.739608{col 72}{space 3} 1.779287
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         ch6{col 14}{c |}{space 1}   165023{col 27}{space 1}        0{col 39}{result}{space 1}   165023{col 53}{text} {col 54}{c |}
{res}{col 1}{text}         yh6{col 14}{c |}{space 1}    92906{col 27}{space 1}     4269{col 39}{result}{space 1}    88637{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
{res}{com}. sum ln_G2 if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ln_G2 {c |}{res}  1,829,783    1.751505    2.011957  -14.41053   26.32497
{com}. loc m = r(mean)
. outreg2 using ..\output\Table_2B.tex, tex(frag) append label  nocons addtext(HS digit product category, 6, Country-product fixed effects, Yes, Product-year fixed effects, Yes) addstat(Dependent variable mean, `m')   dec(3) rdec(2) 
{txt}{stata `"shellout using `"..\output\Table_2B.tex"'"':..\output\Table_2B.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output\Table_2B.txt", label"':seeout}
{com}. 
. {c )-}
{txt}
{com}. 
. 
{txt}end of do-file

{com}. exit, clear
